package cn.sh.yhk.provide;

import org.apache.log4j.Logger;

public class Log4jToKafka {
	private static Logger logger = Logger.getLogger(Log4jToKafka.class);

	public static void main(String args[]) {
		System.out.println("hello word!");
		int start = 1;
		while (true) {
			start++;
			logger.error(start + "hello Log4jToKafka test !");
			try {
				Thread.sleep(50l);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

	}
}
